package com.lb.statck.mapper.category;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lb.statck.pojo.vo.ProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper extends BaseMapper<ProductVo> {
    @Select("select * from products  where categoryid=#{id}")
    List<ProductVo> getAllDetail(String id);
    @Select("select * from products  where product_code=#{id}")
    ProductVo getDetail(String id);
}
